<?php
$db=new mysqli('localhost','root','root','studentmis');
if($db->connect_errno){
    exit('数据库连接失败！');
}
?>